package com.ps.property;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@ApiModel(description = "提问审核信息")
@Data
@NoArgsConstructor
public class ReviewQuestionVo {
  @ApiModelProperty(value = "提问审核ID",required = true)
//  @NotBlank(message = "提问审核ID不能为空")
  private int reviewQuestionId;

  @ApiModelProperty(value = "用户ID",required = true)
  @NotNull(message = "用户ID不能为空")
  private int userId;

  @ApiModelProperty(value = "分类名称",required = true)
  @NotBlank(message = "分类名称不能为空")
  private String classifyName;

  @ApiModelProperty(value = "问题标题",required = true)
  @NotBlank(message = "问题标题不能为空")
  private String questionTitle;

  @ApiModelProperty(value = "提问内容",required = true)
  @NotBlank(message = "提问内容不能为空")
  private String questionContent;

  @ApiModelProperty(value = "图片路径",required = true)
  private String picturePath;

  @ApiModelProperty(value = "提问审核状态(1.审核中  2.未通过  3.通过审核)",required = true)
  @NotNull(message="提问审核状态不能为空")
  private int state;

  @ApiModelProperty(value = "审核说明",required = true)
  @NotBlank(message = "审核说明不能为空")
  private String auditExplain;

  @ApiModelProperty(value = "提交时间",required = true)
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date submitTime;

  @ApiModelProperty(value = "审核时间",required = true)
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date auditTime;

  @ApiModelProperty(value = "创建时间",required = true)
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date createTime;

  @ApiModelProperty(value = "更新时间",required = true)
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date refreshTime;
}
